package tal.cdm.service.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/tal")
public class Test {
    private static int i = 0;

    @Value("${server.port}")
    private String serverPort;

    @RequestMapping("t1")
    public String test1(){
        System.out.println("第" + (i++) + "次访问");
        return serverPort;
    }
}
